﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WaterRevenueMS.Domain.Common.Models;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;


namespace WaterRevenueMS.Domain.ViewModels.BasicSet.ConsumptionState
{
    public class ConsumptionStateModel : EntityCommon
    {
        public ConsumptionStateModel()
        {
            Search = new SearchModel();
            {

            };
        }

        public int Id { get; set; }


        [Display(Name = "用量状态")]
        [Required(ErrorMessage = "用量状态不能为空")]
        [StringLength(16, MinimumLength = 2, ErrorMessage = "用量状态{2}～{1}个字符")]
        public string Yong_LZT { get; set; }

        [Display(Name = "状态代码")]
        public string Zhuang_TDM { get; set; }
        [RegularExpression(@"\d+", ErrorMessage = "必须是数字")]
        [Display(Name = "排序序号")]
        public int OrderNo { get; set; }

        public SearchModel Search { get; set; }
    }
    public class SearchModel
    {
        public SearchModel()
        {

        }


        [Display(Name = "用量状态")]
        public string Yong_LZT { get; set; }


        [Display(Name = "状态代码")]
        public string Zhuang_TDM { get; set; }
        [Display(Name = "排序序号")]
        public int OrderNo { get; set; }
    }
}
